package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_contract")
public class Contract implements Serializable {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商铺名称
     */
    @NotBlank(message = "请输入商铺名称")
    @TableField(value = "name")
    private String name;

    /**
     * 店铺运营类别
     */
    @NotNull(message = "请输入商铺运营类别")
    @TableField(value = "stor_type")
    private Integer storType;

    /**
     * 店铺负责人
     */
    @NotBlank(message = "请输入商铺负责人")
    @TableField(value = "manager")
    private String manager;

    /**
     * 合同开始时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 合同结束时间
     */
    @TableField(value = "stop_time")
    private Date stopTime;

    /**
     * 合同状态
     */
    @TableField(value = "contract_status")
    private Integer contractStatus;

    /**
     * 附件
     */
    @TableField(value = "logo")
    private String logo;

    private static final long serialVersionUID = 1L;
}